#pragma once

#include <SDL.h>
#include <string>
#include "vector2d.h"
#include "rect.h"
#include "color.h"
#include <SDL_opengl.h>

SDL_PixelFormat getPixelFormat();
void ClearSurfaceToColor(SDL_Surface *surface, const Color &col);
SDL_Surface* CreateSurface(const Color &col, int x, int y);
void SurfDrawToSurf(SDL_Surface *src, SDL_Surface *target);
GLuint SurfaceToTexture(SDL_Surface *surface, Vector2df &texcoord);
SDL_Surface* OpenSurface(const std::string &filename);
SDL_Surface* OpenSurface(const std::string &filename, const Color &clr);
GLuint AttachSurface(SDL_Surface *surface, Vector2df &size, Vector2df &corner);